<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>教优方团队 - 内部导航</title>
	<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
	<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

	<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
	<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">

	<script src="http://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>

	<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
	<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>

	<script src="http://cdn.bootcss.com/bootstrap-hover-dropdown/2.2.1/bootstrap-hover-dropdown.min.js"></script>

	<script src="http://cdn.bootcss.com/layer/3.0.1/layer.min.js"></script>
	<style type="text/css">
		body {margin:0 auto;overflow:hidden;}  

	/*=============第一页=============*/	
	.header{
		margin:0 auto;
		width:100%;
		height:640px;
		background-color:#000;
		position:relative;
		}
	.header canvas {
		width:100%;height:auto/*默认全屏显示 可自己设置高度640px*/;
		display:inline-block;vertical-align:baseline
		position:absolute;
		z-index:-1;
		}
	.header .canvaszz{  /*用来解决视频右键菜单，用于视频上面的遮罩层*/
		width:100%;
		background-image: url(http://www.17sucai.com/preview/29861/2016-03-15/HTML5+JS%E5%85%A8%E5%B1%8F%E6%98%9F%E7%A9%BA%E8%83%8C%E6%99%AF%E7%89%B9%E6%95%88/css/img/in_top_bj.jpg);
		height:640px;
		position:absolute;
		z-index:10;
			filter:alpha(opacity=40);
			-moz-opacity:0.4;
			-khtml-opacity: 0.4;
			opacity: 0.4;
		}

	.audio{ 
	/*设置音乐显示位置*/
		width:45px;
		position:fixed;top:65px;left:94%;
		z-index:100;
		filter:alpha(opacity=30);
		-moz-opacity:0.3;
		-khtml-opacity: 0.3;
		opacity: 0.3;
	}
	.header .top_logo{
		margin:0 auto;
		width:750px;
		height:200px;
		position:absolute;
		z-index:30;
		top:10px;
		left: 50%;
		margin-left: -390px;
	}

	.header .nav{
		width:804px;
		height:auto;
		position:absolute;
		z-index:30;
		top:420px;
		left: 50%;
		margin-left: -400px;
	}
	.header .nav a.gv {
		text-decoration:none; 
		background:url(http://www.17sucai.com/preview/29861/2016-03-15/HTML5+JS%E5%85%A8%E5%B1%8F%E6%98%9F%E7%A9%BA%E8%83%8C%E6%99%AF%E7%89%B9%E6%95%88/css/img/nav_gv.png) repeat 0px 0px; 
		width: 130px;
		height: 43px;
		display: block;
		text-align:center;		/*水平居中*/
		line-height:43px;  /*上下居中*/
		cursor:pointer;
		float:left;/*左浮动*/
		margin:8px 2px 8px 2px;
		font:18px/43px 'microsoft yahei'; color:#066197;
	}

	.header .nav a.gv span {
		 display: none;
	}

	.header .nav a.gv:hover {
		background: url(http://www.17sucai.com/preview/29861/2016-03-15/HTML5+JS%E5%85%A8%E5%B1%8F%E6%98%9F%E7%A9%BA%E8%83%8C%E6%99%AF%E7%89%B9%E6%95%88/css/img/nav_gv.png) repeat 0px -43px; 
		color:#1d7eb8;
		-webkit-box-shadow: 0 0 6px #1d7eb8;
		transition-duration: 0.5s;
	}

	.header	.topcn{
		width: 980px;
		top:200px;
		left: 50%;
		margin-left: -490px;
		position:absolute;
		z-index:20;
	}

	.container {
		margin-top: 10px;
	}

	.container-fluid {
		margin-top: 10px;
	}
	</style>

</head>
<body>
	<div class="header" id="demo">
		<div class="top_logo"></div>

		<div class="topcn" style="font:20px/18px 'microsoft yahei'; color:#0FF;text-align:center;">
			<p>&nbsp;</p>

			<p>
			<!-- <div class="container col-xs-12 text-center">
				<div class="btn-group nav">
					<a class=>
						教优方 - 后台导航 <span class="caret"></span>
					</a>
					<ul class="dropdown-menu">
						<li><a href="http://192.168.10.135:22222" target="_blank">开发环境 => 孙胜开发</a></li>
						<li><a href="http://192.168.10.135:20341" target="_blank">开发环境 => 孙笠翔开发</a></li>
						<li role="separator" class="divider"></li>
						<li><a href="http://192.168.148.41:8086" target="_blank"><span class="text-primary">测试环境 / 预发布后台</span></a></li>
						<li role="separator" class="divider"></li>
						<li><a href="JavaScript:;" onclick="online()"><span class="text-bold text-danger"><b>正式环境 / 生产环境</b></span></a></li>
					</ul>
				</div>
			</div> -->
			<h2>教优方 -  内部导航</h2>
			</p>
		</div>
		
		<div class="nav">
			<a class="gv dropdown-toggle dropdown-toggle" data-delay="1000" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"" href="#">后台导航</a>
			<ul class="dropdown-menu">
				<li><a href="http://192.168.10.135:22222" target="_blank">开发环境 => 孙胜开发</a></li>
				<li><a href="http://192.168.10.135:20341" target="_blank">开发环境 => 孙笠翔开发</a></li>
				<li role="separator" class="divider"></li>
				<li><a href="http://192.168.148.41:8086" target="_blank"><span class="text-primary">测试环境 / 预发布后台</span></a></li>
				<li role="separator" class="divider"></li>
				<li><a href="JavaScript:;" onclick="online()"><span class="text-bold text-danger"><b>正式环境 / 生产环境</b></span></a></li>
			</ul>
			<a class="gv" href="https://www.jiaoyf.com" target="_blank">官网</a>
			<a class="gv" href="http://192.168.148.33:8080" target="_blank">Jenkins</a>
			<a class="gv" href="http://192.168.148.41:3000" target="_blank">Git仓库</a>
			<!--<a class="gv" href="javascript:;" onclick="log()" target="_blank">日志中心</a>-->
			<a class="gv" href="http://192.168.34.40:8033" target="_blank">运营工具中心</a>
			<a class="gv" href="http://192.168.148.41/phpmyadmin/" target="_blank">开发数据库</a>
		</div>
		
		<div class="canvaszz"> </div>
		<canvas id="canvas" width="1920" height="867"></canvas>
	</div>

	<!--用来解决视频右键菜单，用于视频上面的遮罩层 START-->
	<!-- <div class="videozz"></div> -->
	<!--用来解决视频右键菜单，用于视频上面的遮罩层 END-->

	<!--音乐 START-->
		<!-- <audio controls="true" autoplay="autoplay" class="audio">
			<source src="css/Music.mp3" type="audio/mp3">
			<source src="css/Music.ogg" type="audio/ogg">
			<source src="css/Music.aac" type="audio/mp4">
		</audio> -->
	<!--音乐 END-->


	<script>
	//宇宙特效
	"use strict";
	var canvas = document.getElementById('canvas'),
		ctx = canvas.getContext('2d'),
		w = canvas.width = window.innerWidth,
		h = canvas.height = window.innerHeight,

		hue = 217,
		stars = [],
		count = 0,
		maxStars = 1300;//星星数量

	var canvas2 = document.createElement('canvas'),
		ctx2 = canvas2.getContext('2d');
	canvas2.width = 100;
	canvas2.height = 100;
	var half = canvas2.width / 2,
		gradient2 = ctx2.createRadialGradient(half, half, 0, half, half, half);
	gradient2.addColorStop(0.025, '#CCC');
	gradient2.addColorStop(0.1, 'hsl(' + hue + ', 61%, 33%)');
	gradient2.addColorStop(0.25, 'hsl(' + hue + ', 64%, 6%)');
	gradient2.addColorStop(1, 'transparent');

	ctx2.fillStyle = gradient2;
	ctx2.beginPath();
	ctx2.arc(half, half, half, 0, Math.PI * 2);
	ctx2.fill();

	// End cache

	function random(min, max) {
		if (arguments.length < 2) {
			max = min;
			min = 0;
		}

		if (min > max) {
			var hold = max;
			max = min;
			min = hold;
		}

		return Math.floor(Math.random() * (max - min + 1)) + min;
	}

	function maxOrbit(x, y) {
		var max = Math.max(x, y),
			diameter = Math.round(Math.sqrt(max * max + max * max));
		return diameter / 2;
		//星星移动范围，值越大范围越小，
	}

	var Star = function() {

		this.orbitRadius = random(maxOrbit(w, h));
		this.radius = random(60, this.orbitRadius) / 8;
		//星星大小
		this.orbitX = w / 2;
		this.orbitY = h / 2;
		this.timePassed = random(0, maxStars);
		this.speed = random(this.orbitRadius) / 50000;
		//星星移动速度
		this.alpha = random(2, 10) / 10;

		count++;
		stars[count] = this;
	}

	Star.prototype.draw = function() {
		var x = Math.sin(this.timePassed) * this.orbitRadius + this.orbitX,
			y = Math.cos(this.timePassed) * this.orbitRadius + this.orbitY,
			twinkle = random(10);

		if (twinkle === 1 && this.alpha > 0) {
			this.alpha -= 0.05;
		} else if (twinkle === 2 && this.alpha < 1) {
			this.alpha += 0.05;
		}

		ctx.globalAlpha = this.alpha;
		ctx.drawImage(canvas2, x - this.radius / 2, y - this.radius / 2, this.radius, this.radius);
		this.timePassed += this.speed;
	}

	for (var i = 0; i < maxStars; i++) {
	  new Star();
	}

	function animation() {
		ctx.globalCompositeOperation = 'source-over';
		ctx.globalAlpha = 0.5; //尾巴
		ctx.fillStyle = 'hsla(' + hue + ', 64%, 6%, 2)';
		ctx.fillRect(0, 0, w, h)

		ctx.globalCompositeOperation = 'lighter';
		for (var i = 1, l = stars.length; i < l; i++) {
			stars[i].draw();
		};

		window.requestAnimationFrame(animation);
	}

	animation();
	</script>

</body>
</html>
<script type="text/javascript">
	function online() {
		layer.confirm('您确定是选择是【正式环境】吗？', {
			btn: ['确定','取消'] //按钮
		}, function(){
			window.open('http://192.168.148.36:2333');
			window.location.reload();
		}, function(){
			// layer.msg('也可以这样', {
			// 	time: 20000, //20s后自动关闭
			// 	btn: ['明白了', '知道了']
			// });
		});
	}

	function log() {
		layer.msg("日志服务器正在努力中...");
	}
</script>